<div class="article-right-content">
    <h3>推荐[recommend]</h3>
    <ul>
        {php}
        $colorArr = ['red','green','orange','cyan','blue','black','gray'];
        {/php}
        {volist name="keywords" id="item"}
            <li>
                <a href="/search/search_name/{$item}.html"><button class="layui-btn layui-bg-{$colorArr[rand(0, 6)]}">{$item}</button></a>
            </li>
        {/volist}
    </ul>
</div>